<?php 
namespace Home\Model;
use Think\Model;
class VerifyModel extends Model {
           /**
            * [getOneVerify 随机获取一条人机验证]
            * @Author   mr-wu
            * @DateTime 2017-03-28T14:02:28+0800
            * @return   [type]                   [description]
            */
    public function getOneVerify(){

            $sql='select * from verify order by rand() limit 1';
            $question=$this->query($sql);

            $question=current($question);
            
             
             $_SESSION['answer'] = $question['answer'];
             
            return $question['question'];
           
    }



}





 ?>